import request from '@/utils/request'

// 查询列表
export function getAll (query) {
  return request({
    url: '/datacenter/sysDataVersion/queryDataView',
    method: 'get',
    params: query,
  })
}

// 查询列表
export function getListExcel (query) {
  return request({
    url: '/sysDataVersion/parseShp',
    method: 'get',
    params: query,
  })
}

// 查询列表
export function getListsShp (query) {
  return request({
    url: '/sysDataVersion/parseShp',
    method: 'get',
    params: query,
  })
}

// 查上传数据
export function getFileData (data) {
  return request({
    url: '/datacenter/sysDataVersion/queryTemporaryUploadById',
    method: 'get',
    params: data
  })
}

//上传
export function uploadSave (data) {
  return request({
    url: '/datacenter/sysDataVersion/saveTemporaryUploadById',
    method: 'get',
    params: data
  })
}
